﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPlus.Master" AutoEventWireup="true" CodeBehind="wbfrm_Administracion_Usuarios.aspx.cs" Inherits="FrontEndPlus.Módulos.Seguridad.wbfrm_Administracion_Usuarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <meta charset="utf8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link type="text/css" rel="stylesheet" href="../../App_Themes/CSS/Smoke.css" />
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2"></script>
	<script type="text/javascript" src="../../JS/Smoke.js"></script>
    <script type="text/javascript" src="../../JS/Smoke.min.js"></script>
    <style type="text/css"> 
            @font-face 
            { 
               font-family: MyFont; 
               src:url('../../App_Themes/Font/Super_Mario_Bros.ttf');/* this will be applied from IE 9 compatibility mode*/ 
               src: url('../../App_Themes/Font/Super_Mario_Bros.ttf') format('embedded-opentype'), /* IE prior versions */ 
               url('../../App_Themes/Font/Super_Mario_Bros.ttf') format('woff'), /* modern browser that support web open font */ 
               url('../../App_Themes/Font/Super_Mario_Bros.ttf') format('truetype'); /* browsers that support true type */ 
           } 
           .Title 
           { 
               font-family: MyFont, Arial; 
               font-weight: bold; 
               font-size: 32px;
               color: #0094ff; 
          } 
          .Text 
          { 
              font-family: MyFont, Arial; 
              font-size: 12px; 
         } 
     </style> 

    <style type="text/css">
        .auto-style2 {
            width: 100%;
            border-style: solid;
            border-width: 1px;
        }
        .auto-style5 {
            height: 26px;
            border-width: 1px;
        }
        .auto-style6 {
            height: 25px;
            border-width: 1px;
        }
        .auto-style7 {
            height: 25px;
            width: 345px;
            border-width: 1px;
        }
        .auto-style8 {
            height: 26px;
            width: 345px;
            border-width: 1px;
        }
        .row { clear: both; width: 100%; overflow: hidden; margin: 5px 0; } 
        .label { float: left; text-align: right; margin-right: 10px; width: 150px; } 
        .value { float: left; text-align: left; } 
        .auto-style9 {
            height: 69px;
            width: 345px;
            border-width: 1px;
        }
        .auto-style10 {
            height: 69px;
            border-width: 1px;
        }
        .auto-style11 {
            height: 68px;
            width: 345px;
            border-width: 1px;
        }
        .auto-style12 {
            height: 68px;
            border-width: 1px;
        }
        .auto-style13 {
            height: 102px;
            width: 345px;
            border-width: 1px;
        }
        .auto-style14 {
            height: 102px;
            border-width: 1px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <asp:Image ID="Image2" runat="server" Height="225px" ImageAlign="Bottom" ImageUrl="~/App_Themes/Resources/usuarios.gif" Width="234px" />
    <asp:Panel ID="Panel2" runat="server" Height="545px" Width="206px">
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <br/>
    <asp:Panel ID="Panel1" runat="server" Height="596px" style="margin-left: 0px" Width="763px">
        <br />
        <table align="center" class="auto-style2">
            <tr>
                <td class="auto-style9" valign="middle" align="center"> 
                  <div style='width: 300px; border: 0px solid #dfdfdf; padding: 4px;'> 
                    <div class="Title">Agregar Usuarios</div> 
                  </div>   
                </td>
                <td class="auto-style10" valign="middle" align="center">
                    <div style='width: 300px; border: 0px solid #dfdfdf; padding: 4px;'> 
                    <div class="Title">Modificar Usuarios</div> 
                  </div> 
                </td>
            </tr>

            <tr>
                <td class="auto-style7">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Nombre_Completo_Agregar" Text="Nombre Completo:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Nombre_Completo" runat="server" onkeypress="return soloLetras(event);" maxlength="50" />
                        </div>
                    </div >
                </td>
                <td class="auto-style6">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Usuario_Modificar" Text="Usuario:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:DropDownList ID="cb_Usuario_Modificar" runat="server" Height="21px" Width="173px" AutoPostBack="True" OnSelectedIndexChanged="cb_Usuario_Modificar_SelectedIndexChanged"></asp:DropDownList>
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Nuevo_Usuario" Text="Nuevo Usuario:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Nuevo_Usuario" runat="server" maxlength="15" />
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Nombre_Completo_Modificar" Text="Nombre Completo:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Nombre_Completo_Modificar" runat="server" maxlength="50" />
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Cedula" Text="Cedula:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Cedula" runat="server" maxlength="11" onkeypress="return soloNumerosYGuion(event);"/>
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Cedula_Modificar" Text="Cedula:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Cedula_Modificar" runat="server" maxlength="11" onkeypress="return soloNumerosYGuion(event);"/>
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Descripcion" Text="Descripcion:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Descripcion" runat="server" maxlength="25" />
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Descripcion_Modificar" Text="Descripcion:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Descripcion_Modificar" runat="server" maxlength="25" />
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Telefono" Text="Télefono:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Telefono" runat="server" onkeypress="return soloNumeros(event);" maxlength="8" />
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Telefono_Modificar" Text="Télefono:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Telefono_Modificar" runat="server" onkeypress="return soloNumeros(event);" maxlength="8" />
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Contrasena" Text="Contraseña:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Contrasena" runat="server" textmode="Password" maxlength="15" />
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Contrasena_Modificar" Text="Contraseña:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Contrasena_Modificar" runat="server" textmode="Password" maxlength="15" />
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Repetir_Contrasena" Text="Repetir Contraseña:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Repetir_Contrasena" runat="server" textmode="Password" maxlength="15" />
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Repetir_Contrasena_Modificar" Text="Repetir Contraseña:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Repetir_Contrasena_Modificar" runat="server" textmode="Password" maxlength="15" />
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Email" Text="Email:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Email" runat="server" maxlength="50" />
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Email_Modificar" Text="Email:(*)" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:TextBox ID="txt_Email_Modificar" runat="server" maxlength="50" />
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Rol" Text="Rol:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:DropDownList ID="cb_Rol" runat="server" Height="21px" Width="173px"></asp:DropDownList>
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Modificar_Rol" Text="Rol:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:DropDownList ID="cb_Rol_Modificar" runat="server" Height="21px" Width="173px"></asp:DropDownList>
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style8">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Estado" Text="Estado:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:CheckBox ID="chk_Estado" runat="server" Text="Activo" />
                        </div>
                    </div >
                </td>

                <td class="auto-style5">
                    <div class="row"> 
                        <div class="label">
                            <asp:Label ID="lbl_Estado_Modificar" Text="Estado:" runat="server" AssociatedControlID="txt_Nombre_Completo" />
                        </div>
                        <div class="value">
                            <asp:CheckBox ID="chk_Estado_Modificar" runat="server" Text="Activo" />
                        </div>
                    </div >
                </td>
            </tr>
            <tr>
                <td class="auto-style13" >
                      <center> <asp:Button ID="btn_Agregar" runat="server" Text="Agregar" Height="71px" Width="83px" ForeColor="#0066FF" OnClick="btn_Agregar_Click" /></center>
                </td>

                <td class="auto-style14" align="center">
                      <center><asp:Button ID="btn_Modificar" runat="server" Text="Modificar" Height="71px" Width="83px" ForeColor="#0066FF" OnClick="btn_Modificar_Click" /></center>
                </td>
            </tr>
        </table>
    </asp:Panel>

    <script type="text/javascript">
    function soloNumeros(e) {
            var keynum = window.event ? window.event.keyCode : e.which;
            if ((keynum == 8) || (keynum == 46))
                return true;
            return /\d/.test(String.fromCharCode(keynum));
    }

    function soloNumerosYGuion(e) {
        var keynum = window.event ? window.event.keyCode : e.which;
        if ((keynum == 8)  ||  (keynum == 45))
            return true;
        return /\d/.test(String.fromCharCode(keynum));
    }
        function soloLetras(e) {
            tecla = (document.all) ? e.keyCode : e.which;
            if (tecla == 8) return true;
            patron = /[A-Za-z]/;
            te = String.fromCharCode(tecla);
            return patron.test(te);
        }
    </script>
</asp:Content>
